package com.xmy.cultivate.feign.english;

import com.xmy.cultivate.entity.StudentAccount;
import com.xmy.cultivate.respons.ResStudentClassType;
import com.xmy.cultivate.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "study-outside")
public interface IFeiEnglishFeignClient {

    /**
     *
     * @param
     * @return
     */
    @GetMapping("/api/outside/studentAccount/test")
    public Result test(@RequestParam Map<String,String> map);


    @PostMapping("/api/outside/studentAccount/addAccount")
    public Boolean addAccount(@RequestBody StudentAccount studentAccount);

    @PostMapping("/api/outside/studentAccount/updateClassType")
    public Boolean updateClassType(@RequestBody ResStudentClassType studentClassType);

    @PostMapping("/api/outside/chaPlan/updateStudentClassType")
    public boolean updateStudentClassType(@RequestBody ResStudentClassType studentClassType);
}
